package com.draw.cli.webclient;

import java.net.MalformedURLException;

import javax.xml.ws.Service;
import javax.xml.ws.WebServiceException;

import com.draw.webinterface.ColorInterface;

public class ColorClient extends Client {
	private static ColorInterface colorInterface = null;

	public static ColorInterface getInstance() throws MalformedURLException,
			WebServiceException {
		if (colorInterface == null || Client.isConfigChanged()) {
			Service service = getService("ColorService");
			colorInterface = service.getPort(ColorInterface.class);
		}
		return colorInterface;
	}
}
